package com.shuoyue.ycgk.ui.estimate;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.EstimateHis;

import java.util.List;

public class EstimateHisAdapter extends AppBaseQuickAdapter<EstimateHis> {
    public EstimateHisAdapter(@Nullable List<EstimateHis> data) {
        super(R.layout.item_estimate_his, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, EstimateHis item) {
        helper.addOnClickListener(R.id.button);
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.name, item.getTitle());
        helper.setText(R.id.score, item.getTotalScore() + "分");
    }
}
